//
//  CardModel.swift
//  XCDragCardContainer
//  Created by XC on 2023/3/1.
//
//
//

import Foundation
import UIKit

internal final class CardModel {
    internal let identifier: String = UUID().uuidString
    
    internal let cardView: DragCardView
    internal let index: Int
    
    internal var currentBasicInfo: BasicInfo = .default
    internal var targetBasicInfo: BasicInfo = .default
    
    internal var resetTag: Bool = false
    
    internal init(cardView: DragCardView, index: Int) {
        self.cardView = cardView
        self.index = index
    }
}

extension CardModel: Equatable {
    internal static func == (lhs: CardModel, rhs: CardModel) -> Bool {
        return lhs.identifier == rhs.identifier
    }
}

